I'm trying to control certain Services with batch files to have them stop automatically at start. However, with certain services, stopping requires run as admin. My user account has admin privileges.
For example, a batch file with this command will stop with a command prompt requiring Y/N to confirm the stop.
NET STOP "Audiosrv"
I can create a shortcut and set it to run as admin and it will stop the service without issue when it's clicked. However, if I put the shortcut in the Windows startup folder, so the script runs automatically at boot it seems to ignore the shortcuts.
I've tried the RunAs command below in a batch file, but it doesn't stop the service.
runas /user:jaguar\Admin NET STOP "Audiosrv"
Thanks for your help.
- Edited by forkenbrock 15 hours 36 minutes ago